package org.jeecg.modules.system.job;

import org.jeecg.modules.system.service.ITaskCalculatorService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

public class CalMeterDataJob implements Job {

    @Autowired
    private ITaskCalculatorService taskCalculatorService;

    private String parameter;

    public void setParameter(String parameter) {
        this.parameter = parameter;
    }

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

        taskCalculatorService.calMeterHour();
        taskCalculatorService.calMeterDay();
        taskCalculatorService.calMeterMonth();
        taskCalculatorService.calMeterYear();
    }
}
